package com.cyxy.ojbackendmodel.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@TableName(value = "user")
@Data
//用户实体类
public class User implements Serializable {

    // id
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    //用户账号
    private String userAccount;

    //用户名
    private String userName;

    //用户密码
    private String userPassword;

    //用户简介
    private String userProfile;

    //用户角色：user/admin/ban
    private String userRole;

    //创建时间
    private Date createTime;

    //更新时间
    private Date updateTime;

    //是否删除
    //逻辑删除
    @TableLogic
    private Integer isDelete;

    //唯一标识
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}